package com.ambow.service.impl;



import java.util.List;

import com.ambow.Entity.Payment;
import com.ambow.dao.PaymentDao;
import com.ambow.dao.impl.PaymentDaoImpl;
import com.ambow.service.PaymentService;



public class PaymentServiceImpl implements PaymentService{
	PaymentDao dao = new PaymentDaoImpl();
	@Override
	public boolean add(Payment payment) {
		return this.dao.add(payment);
	}
	@Override
	public List<Payment> queryByProperty(String hql) {
		return this.dao.queryByProperty(hql);
	}
	@Override
	public Payment queryById(Class c, Integer payment_id) {
		return this.dao.queryById(c,payment_id);
	}
	@Override
	public boolean update(Payment payment) {
		return this.dao.update(payment);
	}

}
